﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TotalProject_Add.aspx.cs"
    Inherits="ProjectManage_TotalProject_Add" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />

    <script src="../JS/calendar.js" type="text/javascript"></script>

    <script src="../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        /////调用人员选择树      
        //选择人员信息
        var sChoiceID;              //所在赋值的关键字  
        var ChoiceNameInfo;         //选择的名称集合
        var ChoiceIDInfo;           //选择的ID集合
        var iChoicePoNumber1 = 1;     //0表示任意多,其它的正整数为可以选择的最大个数.不可以为负数      
        function GetMyPersTree(obj) {
            var sOrgIDCol = form1.HOrgIDCol.value;
            var sFeatures = "dialogHeight:600px;dialogWidth:700px;resizeable:no;help:no;status:no";
            var obj = showModalDialog("../SysManage/ChoicePersInfo.aspx?ChoiceID=" + obj + "&OrgType=2&OrgIDCol=" + sOrgIDCol, window, sFeatures);
            if (obj != undefined) {
                sChoiceID = obj.sChoiceID;
                ChoiceNameInfo = obj.ChoiceNameInfo;
                ChoiceIDInfo = obj.ChoiceIDInfo;
                eval("form1.ChoiceName_" + sChoiceID + ".value=" + ChoiceNameInfo + ";");
                eval("form1.HChoiceID_" + sChoiceID + ".value=" + ChoiceIDInfo + ";");
                eval("form1.HNewChoiceID_" + sChoiceID + ".value=" + ChoiceIDInfo + ";");
                eval("form1.ChoiceName_" + sChoiceID + ".blur()");
            }
        }
        function fPopUpCalendarDlg(ctrlobj)  //日期速查
        {
            showx = event.screenX - event.offsetX - 4; // + deltaX;
            showy = event.screenY - event.offsetY + 18; // + deltaY;
            newWINwidth = 210 + 4 + 18;

            retval = window.showModalDialog("../js/CalendarDlg.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:" + showx + "px; dialogTop:" + showy + "px; status:no; directories:yes;help:no;scrollbars:no;Resizable=no; ");
            if (retval != null) {
                ctrlobj.value = retval;
            } else {
            }
            ctrlobj.blur();
        }
        function add() {
            if (form1.txtprojectno.value == "") {
                form1.txtprojectno.focus();
                alert("项目编号不能为空！");
                return;
            }

            if (form1.txtname.value == "") {
                form1.txtname.focus();
                alert("项目名称不能为空！");
                return;
            }

            if (form1.ChoiceName_2.value == "") {
                form1.ChoiceName_2.focus();
                alert("第一负责人不能为空！");
                return;
            }

            var btnSave = window.document.getElementById("btnAdd");
            if (btnSave != null)
                btnSave.click();
        }
    </script>

    <style type="text/css">
        .style1
        {
            color: #FF0000;
        }
    </style>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                任务类型
            </td>
            <td height="25" colspan="2" align="left">
                <asp:DropDownList ID="ddltasktype" runat="server">
                </asp:DropDownList>
            </td>
            <td height="25" align="right">
                设计阶段
            </td>
            <td height="25" colspan="2" align="left">
                <asp:DropDownList ID="ddlstage" runat="server">
                </asp:DropDownList>
            </td>
            <td height="25" align="left">
                任务编号
            </td>
            <td align="left">
                <asp:TextBox ID="txttaskno" runat="server" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                项目编号
            </td>
            <td height="25" colspan="2" align="left">
                <asp:TextBox ID="txtprojectno" runat="server" Width="100px"></asp:TextBox>
                <span class="style1">*</span></td>
            <td height="25" align="right">
                项目名称
            </td>
            <td height="25" colspan="4" align="left">
                <asp:TextBox ID="txtname" runat="server" Width="300px"></asp:TextBox>
                <span class="style1">*</span></td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                建设单位
            </td>
            <td height="25" colspan="2" align="left">
                <asp:DropDownList ID="ddlcommpany" runat="server">
                </asp:DropDownList>
            </td>
            <td height="25" align="right">
                分管领导
            </td>
            <td height="25" colspan="4" align="left">
                <asp:TextBox ID="ChoiceName_1" runat="server" onclick="GetMyPersTree(1)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_1" runat="server" />
                <input type="hidden" id="HNewChoiceID_1" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                项目类别
            </td>
            <td height="25" colspan="2" align="left">
                <asp:RadioButtonList ID="rblprojecttype" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="A" Selected="True">A类</asp:ListItem>
                    <asp:ListItem Value="B">B类</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td height="25" align="right">
                进度类别
            </td>
            <td height="25" colspan="4" align="left">
                <asp:RadioButtonList ID="rblprogresstype" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="常规" Selected="True">常规</asp:ListItem>
                    <asp:ListItem Value="紧急">紧急</asp:ListItem>
                    <asp:ListItem Value="特急">特急</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                专业
            </td>
            <td align="center">
                承担部门
            </td>
            <td align="center">
                计划完成日期
            </td>
            <td align="center">
                计划交分院审核日期
            </td>
            <td align="center">
                指定院审核人
            </td>
            <td align="center">
                指定分院审核人
            </td>
            <td align="center">
                是否编制质量计划
            </td>
            <td align="center">
                是否会议评审
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                <select id="sltprofessional1" style="width: 100px" runat="server">
                </select>
            </td>
            <td align="center">
                <select id="sltdepartments1" style="width: 100px" runat="server">
                </select>
            </td>
            <td>
                <asp:TextBox ID="txtcompletiondate1" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtdeliverydate1" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_11" runat="server" onclick="GetMyPersTree(11)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_11" runat="server" />
                <input type="hidden" id="HNewChoiceID_11" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_12" runat="server" onclick="GetMyPersTree(12)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_12" runat="server" />
                <input type="hidden" id="HNewChoiceID_12" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkqualityplan1" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkconferencereview1" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                <select id="sltprofessional2" style="width: 100px" runat="server">
                </select>
            </td>
            <td align="center">
                <select id="sltdepartments2" style="width: 100px" runat="server">
                </select>
            </td>
            <td>
                <asp:TextBox ID="txtcompletiondate2" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtdeliverydate2" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_21" runat="server" onclick="GetMyPersTree(21)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_21" runat="server" />
                <input type="hidden" id="HNewChoiceID_21" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_22" runat="server" onclick="GetMyPersTree(22)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_22" runat="server" />
                <input type="hidden" id="HNewChoiceID_22" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkqualityplan2" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkconferencereview2" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                <select id="sltprofessional3" style="width: 100px" runat="server">
                </select>
            </td>
            <td align="center">
                <select id="sltdepartments3" style="width: 100px" runat="server">
                </select>
            </td>
            <td>
                <asp:TextBox ID="txtcompletiondate3" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtdeliverydate3" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_31" runat="server" onclick="GetMyPersTree(31)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_31" runat="server" />
                <input type="hidden" id="HNewChoiceID_31" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_32" runat="server" onclick="GetMyPersTree(32)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_32" runat="server" />
                <input type="hidden" id="HNewChoiceID_32" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkqualityplan3" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkconferencereview3" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                <select id="sltprofessional4" style="width: 100px" runat="server">
                </select>
            </td>
            <td align="center">
                <select id="sltdepartments4" style="width: 100px" runat="server">
                </select>
            </td>
            <td>
                <asp:TextBox ID="txtcompletiondate4" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtdeliverydate4" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_41" runat="server" onclick="GetMyPersTree(41)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_41" runat="server" />
                <input type="hidden" id="HNewChoiceID_41" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_42" runat="server" onclick="GetMyPersTree(42)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_42" runat="server" />
                <input type="hidden" id="HNewChoiceID_42" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkqualityplan4" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkconferencereview4" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                <select id="sltprofessional5" style="width: 100px" runat="server">
                </select>
            </td>
            <td align="center">
                <select id="sltdepartments5" style="width: 100px" runat="server">
                </select>
            </td>
            <td>
                <asp:TextBox ID="txtcompletiondate5" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtdeliverydate5" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_51" runat="server" onclick="GetMyPersTree(51)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_51" runat="server" />
                <input type="hidden" id="HNewChoiceID_51" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_52" runat="server" onclick="GetMyPersTree(52)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_52" runat="server" />
                <input type="hidden" id="HNewChoiceID_52" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkqualityplan5" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkconferencereview5" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="center">
                <select id="sltprofessional6" style="width: 100px" runat="server">
                </select>
            </td>
            <td align="center">
                <select id="sltdepartments6" style="width: 100px" runat="server">
                </select>
            </td>
            <td>
                <asp:TextBox ID="txtcompletiondate6" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtdeliverydate6" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_61" runat="server" onclick="GetMyPersTree(61)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_61" runat="server" />
                <input type="hidden" id="HNewChoiceID_61" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="ChoiceName_62" runat="server" onclick="GetMyPersTree(62)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_62" runat="server" />
                <input type="hidden" id="HNewChoiceID_62" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkqualityplan6" runat="server" />
            </td>
            <td align="center">
                <asp:CheckBox ID="chkconferencereview6" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                任命总负责人
            </td>
            <td height="25" align="right">
                第一负责人
            </td>
            <td align="left">
                <asp:TextBox ID="ChoiceName_2" runat="server" onclick="GetMyPersTree(2)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_2" runat="server" />
                <input type="hidden" id="HNewChoiceID_2" runat="server" />
                <span class="style1">*</span></td>
            <td height="25" align="right">
                第二负责人
            </td>
            <td height="25" align="left">
                <asp:TextBox ID="ChoiceName_3" runat="server" onclick="GetMyPersTree(3)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_3" runat="server" />
                <input type="hidden" id="HNewChoiceID_3" runat="server" />
            </td>
            <td height="25" align="right">
                经营计划部审核领导
            </td>
            <td height="25" colspan="2" align="left">
                <asp:TextBox ID="ChoiceName_4" runat="server" onclick="GetMyPersTree(4)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_4" runat="server" />
                <input type="hidden" id="HNewChoiceID_4" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                计划人员
            </td>
            <td height="25" colspan="2" align="left">
                <asp:TextBox ID="ChoiceName_5" runat="server" onclick="GetMyPersTree(5)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_5" runat="server" />
                <input type="hidden" id="HNewChoiceID_5" runat="server" />
            </td>
            <td height="25" align="right">
                日期
            </td>
            <td height="25" align="left">
                <asp:TextBox ID="txttpdate" onfocus="fPopUpCalendarDlg(this)" runat="server"
                    Width="100px" CssClass="input" MaxLength="19"></asp:TextBox>
            </td>
            <td height="25" align="right">
                经营人员
            </td>
            <td height="25" colspan="2" align="left">
                <asp:TextBox ID="ChoiceName_6" runat="server" onclick="GetMyPersTree(6)"></asp:TextBox>
                <input type="hidden" id="HChoiceID_6" runat="server" />
                <input type="hidden" id="HNewChoiceID_6" runat="server" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                经营计划部意见
            </td>
            <td height="25" colspan="7" align="left">
                <asp:TextBox ID="txtcomments1" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                分管院长
            </td>
            <td height="25" colspan="7" align="left">
                <asp:TextBox ID="txtcomments2" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                审核人变更
            </td>
            <td height="25" colspan="3" align="left">
                <asp:TextBox ID="txtreviewedchange" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td height="25" colspan="2" align="right">
                会议变更
            </td>
            <td height="25" colspan="2" align="left">
                <asp:TextBox ID="txtmeetingchange" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                备注
            </td>
            <td height="25" colspan="7" align="left">
                <asp:TextBox ID="txtremark" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                合作单位
            </td>
            <td height="25" colspan="7" align="left">
                <asp:TextBox ID="txtcooperationunit" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" align="right">
                合作人
            </td>
            <td height="25" colspan="7" align="left">
                <asp:TextBox ID="txtcooperationperson" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td height="25" colspan="13">
                <div align="center">
                    <asp:Button ID="btnAdChild" runat="server" CssClass="button06" Text="添加子项目" 
                        onclick="btnAdChild_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="btnSave" type="button" class="button04" value="保  存" onclick="add();" />&nbsp;&nbsp;&nbsp;&nbsp;                    
                    <asp:Button ID="btnDelete" runat="server" CssClass="button04" Text="删  除" 
                        onclick="btnDelete_Click" />&nbsp;&nbsp;&nbsp;&nbsp;                    
                    <asp:Button ID="btnAdd" runat="server" Text="· 提交 ·" OnClick="btnAdd_Click" Width="0px" Height="0px"></asp:Button>
                </div>
            </td>
        </tr>
    </table>
    <input type="hidden" id="HOrgIDCol" runat="server" />
    </form>
</body>
</html>
